home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_5 / issue_06 / benchmarks / header / time
Encoding:
Text File  |  1990-11-06  |  1.4 KB  |  64 lines

  1. /***************************************************************************
  2.  
  3.                         (C) 1990 Beebug Ltd
  4.                         -------------------
  5.  
  6. ****************************************************************************
  7.  
  8.                 Module : Date and Time <time.h>
  9.  
  10.                 Author : David Allison
  11.  
  12.                 Issue : 1.0
  13.  
  14.         This header is designed to be used with the Acorn Shared Library
  15.         (CLib).
  16.  
  17. ****************************************************************************/
  18.  
  19. #ifndef __TIME
  20. #define __TIME
  21.  
  22. #pragma standard 0x08
  23. #pragma list 0
  24.  
  25. #define NULL 0
  26. #define CLK_TCK 100
  27.  
  28. #ifndef __size_t
  29. #define __size_t
  30. typedef unsigned int size_t ;
  31. #endif
  32.  
  33. typedef unsigned int clock_t ;
  34. typedef unsigned int time_t ;
  35.  
  36.  
  37. struct tm 
  38.    {
  39.    int tm_sec ;
  40.    int tm_min ;
  41.    int tm_hour ;
  42.    int tm_mday ;
  43.    int tm_mon ;
  44.    int tm_year ;
  45.    int tm_wday ;
  46.    int tm_yday ;
  47.    int tm_isdst ;
  48.    }  ;
  49.  
  50. extern clock_t clock (void) ;
  51. extern double difftime (time_t time1, time_t time0) ;
  52. extern time_t mktime (struct tm *timeptr) ;
  53. extern time_t time (time_t *timer) ;
  54.  
  55. extern char *asctime (const struct tm *timeptr) ;
  56. extern char *ctime (const time_t *timer) ;
  57. extern struct tm *gmtime (const time_t *timer) ;
  58. extern struct tm *localtime (const time_t *timer) ;
  59. extern size_t strftime (char *s, size_t maxsize,
  60.                         const char *format, const struct tm *timeptr) ;
  61.  
  62. #endif
  63.  
  64.